<html>
  <head>
    <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>计算机综合：网络分层 | cooly-me</title>
<link rel="shortcut icon" href="https://cooly-me.github.io/favicon.ico?v=1588774077233">
<link href="https://cdn.jsdelivr.net/npm/remixicon@2.3.0/fonts/remixicon.css" rel="stylesheet">
<link rel="stylesheet" href="https://cooly-me.github.io/styles/main.css">
<link rel="alternate" type="application/atom+xml" title="计算机综合：网络分层 | cooly-me - Atom Feed" href="https://cooly-me.github.io/atom.xml">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Droid+Serif:400,700">


<script async src="https://www.googletagmanager.com/gtag/js?id=UA-164376524-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-164376524-1');
</script>


    <meta name="description" content="OSI模型
应用层
网络进程到应用程序。针对特定应用规定各层协议、时序、表示等，进行封装 。在端系统中用软件来实现，如HTTP等
表示层
数据表示形式，加密和解密，把机器相关的数据转换成独立于机器的数据。规定数据的格式化表示 ，数据格式的转..." />
    <meta name="keywords" content="network" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
    <script src="https://cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
  </head>
  <body>
    <div class="main">
      <div class="main-content">
        <div class="site-header">
  <a href="https://cooly-me.github.io">
  <img class="avatar" src="https://cooly-me.github.io/images/avatar.png?v=1588774077233" alt="">
  </a>
  <h1 class="site-title">
    cooly-me
  </h1>
  <p class="site-description">
    stay hungry，stay foolish
  </p>
  <div class="menu-container">
    
      
        <a href="/" class="menu">
          首页
        </a>
      
    
      
        <a href="/archives" class="menu">
          归档
        </a>
      
    
      
        <a href="/tags" class="menu">
          标签
        </a>
      
    
      
        <a href="https://cooly-me.github.io/post/about" class="menu">
          关于
        </a>
      
    
  </div>
  <div class="social-container">
    
      
        <a href="https://github.com/cooly-me" target="_blank">
          <i class="ri-github-line"></i>
        </a>
      
    
      
    
      
    
      
        <a href="https://www.zhihu.com/people/mai-zi-1994-70" target="_blank">
          <i class="ri-zhihu-line"></i>
        </a>
      
    
      
    
  </div>
</div>

        <div class="post-detail">
          <article class="post">
            <h2 class="post-title">
              计算机综合：网络分层
            </h2>
            <div class="post-info">
              <span>
                2020-04-25
              </span>
              <span>
                1 min read
              </span>
              
                <a href="https://cooly-me.github.io/tag/ARxs9o0Pm/" class="post-tag">
                  # network
                </a>
              
            </div>
            
            <div class="post-content-wrapper">
              <div class="post-content">
                <h1 id="osi模型">OSI模型</h1>
<h3 id="应用层">应用层</h3>
<p>网络进程到应用程序。针对特定应用规定各层协议、时序、表示等，进行封装 。在端系统中用软件来实现，如HTTP等</p>
<h3 id="表示层">表示层</h3>
<p>数据表示形式，加密和解密，把机器相关的数据转换成独立于机器的数据。规定数据的格式化表示 ，数据格式的转换等</p>
<h3 id="会话层">会话层</h3>
<p>主机间通讯，管理应用程序之间的会话。规定通信时序 ；数据交换的定界、同步，创建检查点等</p>
<h3 id="传输层">传输层</h3>
<p>在网络的各个节点之间可靠地分发数据包。所有传输遗留问题；复用；流量；可靠</p>
<h3 id="网络层">网络层</h3>
<p>在网络的各个节点之间进行地址分配、路由和（不一定可靠的）分发报文。路由（ IP寻址）；拥塞控制。</p>
<h3 id="数据链路层">数据链路层</h3>
<p>一个可靠的点对点数据直链。检错与纠错（CRC码）；多路访问；寻址</p>
<h3 id="物理层">物理层</h3>
<p>一个（不一定可靠的）点对点数据直链。定义机械特性；电气特性；功能特性；规程特性</p>

              </div>
              <div class="toc-container">
                <ul class="markdownIt-TOC">
<li><a href="#osi%E6%A8%A1%E5%9E%8B">OSI模型</a><br>
*
<ul>
<li><a href="#%E5%BA%94%E7%94%A8%E5%B1%82">应用层</a></li>
<li><a href="#%E8%A1%A8%E7%A4%BA%E5%B1%82">表示层</a></li>
<li><a href="#%E4%BC%9A%E8%AF%9D%E5%B1%82">会话层</a></li>
<li><a href="#%E4%BC%A0%E8%BE%93%E5%B1%82">传输层</a></li>
<li><a href="#%E7%BD%91%E7%BB%9C%E5%B1%82">网络层</a></li>
<li><a href="#%E6%95%B0%E6%8D%AE%E9%93%BE%E8%B7%AF%E5%B1%82">数据链路层</a></li>
<li><a href="#%E7%89%A9%E7%90%86%E5%B1%82">物理层</a></li>
</ul>
</li>
</ul>

              </div>
            </div>
          </article>
        </div>

        
          <div class="next-post">
            <div class="next">下一篇</div>
            <a href="https://cooly-me.github.io/post/docker-da-jian-mysql-ji-qun/">
              <h3 class="post-title">
                docker 搭建Mysql集群
              </h3>
            </a>
          </div>
        

        
          
            <link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>

<div id="gitalk-container"></div>

<script>

  var gitalk = new Gitalk({
    clientID: '755ac14dfbcff80cdd6f',
    clientSecret: '0438e04ad318f77616e63820ad2244fba331476b',
    repo: 'cooly-me.github.io',
    owner: 'cooly-me',
    admin: ['cooly-me'],
    id: (location.pathname).substring(0, 49),      // Ensure uniqueness and length less than 50
    distractionFreeMode: false  // Facebook-like distraction free mode
  })

  gitalk.render('gitalk-container')

</script>

          

          
        

        <div class="site-footer">
  Powered by <a href="https://github.com/getgridea/gridea" target="_blank">Gridea</a>
  <a class="rss" href="https://cooly-me.github.io/atom.xml" target="_blank">
    <i class="ri-rss-line"></i> RSS
  </a>
</div>

      </div>
    </div>

    <script>
      hljs.initHighlightingOnLoad()

      let mainNavLinks = document.querySelectorAll(".markdownIt-TOC a");

      // This should probably be throttled.
      // Especially because it triggers during smooth scrolling.
      // https://lodash.com/docs/4.17.10#throttle
      // You could do like...
      // window.addEventListener("scroll", () => {
      //    _.throttle(doThatStuff, 100);
      // });
      // Only not doing it here to keep this Pen dependency-free.

      window.addEventListener("scroll", event => {
        let fromTop = window.scrollY;

        mainNavLinks.forEach((link, index) => {
          let section = document.getElementById(decodeURI(link.hash).substring(1));
          let nextSection = null
          if (mainNavLinks[index + 1]) {
            nextSection = document.getElementById(decodeURI(mainNavLinks[index + 1].hash).substring(1));
          }
          if (section.offsetTop <= fromTop) {
            if (nextSection) {
              if (nextSection.offsetTop > fromTop) {
                link.classList.add("current");
              } else {
                link.classList.remove("current");    
              }
            } else {
              link.classList.add("current");
            }
          } else {
            link.classList.remove("current");
          }
        });
      });

    </script>
  </body>
</html>
